package com.sise.stuteaintersys.mapper;

import com.sise.stuteaintersys.bean.entity.ExamCourse;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @ClassName ExamCourseMapper
 * @Description
 * @Date 2019/1/3 11:30
 * @Version 1.0
 **/
public interface ExamCourseMapper {

    @Select("select * from exam_course where course_id=#{courseId}")
    List<ExamCourse> selectExamByCourseId(Integer courseId);

    int insert(ExamCourse examCourse);

    @Delete("delete from exam_course where exam_type = #{examType} and course_id = #{courseId}")
    int delete(ExamCourse course);
}
